import { GTileList } from "../../../../com/mui/controls/GTileList";
import { ShopItemInfo } from "../../resource/info/ShopItemInfo";
import { ScrollBarDirection } from "../../../../fl/controls/ScrollBarDirection";
import { PropsRender } from "../shopMall/PropsRender";
import { DataProvider } from "../../../../fl/data/DataProvider";
import { ShopConfig } from "../../resource/ShopConfig";
import { ECategory } from "../../../../Message/Public/ECategory";
import { EProp } from "../../../../Message/Public/EProp";
import { _twiceShopItemInfo } from "../../../../this/_twiceShopItemInfo";
import { _tripleShopItemInfo } from "../../../../this/_tripleShopItemInfo";
type int = number;
//class ExpPropsPanel
    
    export  class ExpPropsPanel extends GTileList
    {
        constructor()
        {
            super();
            mouseChildren = true;
            this.init();
            return;
        }

        public get twiceShopItemInfo(): ShopItemInfo
        {
            return this._twiceShopItemInfo;
        }

        public get tripleShopItemInfo(): ShopItemInfo
        {
            return this._tripleShopItemInfo;
        }

        /* internal  */init(): void
        {
            setSize(200, 180);
            columnWidth = 197;
            rowHeight = 77;
            direction = ScrollBarDirection.VERTICAL;
            verticalGap = 8;
            setStyle("skin", new Object /* flash.display.Bitmap */());
            setStyle("cellRenderer", PropsRender);
            this.getProvider();
            return;
        }

        /* internal  */getProvider(): void
        {
            var loc1=new DataProvider();
            this._twiceShopItemInfo = ShopConfig.instance.getGoldItemByType(ECategory._ECategoryProp, EProp._EPropOfflineAddExperience, this.TwiceEffect);
            this._tripleShopItemInfo = ShopConfig.instance.getGoldItemByType(ECategory._ECategoryProp, EProp._EPropOfflineAddExperience, this.TripleEffect);
            loc1.addItem({"shopItemInfo": _twiceShopItemInfo, "isHot": this.isHot});
            loc1.addItem({"shopItemInfo": _tripleShopItemInfo, "isHot": this.isHot});
            this.dataProvider = loc1;
            return;
        }

        /* internal */ /* const */TwiceEffect: int=200;

        /* internal */ /* const */TripleEffect: int=300;

        /* internal */ /* var */isHot: Boolean=false;

        /* internal */ /* var */_twiceShopItemInfo: ShopItemInfo;

        /* internal */ /* var */_tripleShopItemInfo: ShopItemInfo;
    }
